<div class="video_lists clearfix">
    <div class="cover_img">
        <?php echo CHtml::link(CHtml::image($data->coverSource, CHtml::encode($data->name)), array('videos/view', 'node' => $data->node_id, 'id' => $data->id)); ?>
    </div>
    <div class="content">
        <div class="title">
            <?php echo CHtml::link(CHtml::encode($data->name), array('videos/view', 'node' => $data->node_id, 'id' => $data->id), array('title' => CHtml::encode($data->name))); ?>
        </div>
        <div class="other">
            <?php echo '发布于 ' . date('Y-m-d', $data->created); ?>
            <span></span>
            播放次数: <?php echo $data->times_of_play_count; ?>
            <span></span>
            最后更新: <?php echo date('Y-m-d H:m:s', $data->updated); ?>
        </div>
        <div class="content_main">
            <?php
            $this->beginWidget('CMarkdown', array('purifyOutput' => true));
            if (isset($expand) && $expand = true) {
            // 显示全部内容
                echo $data->summary;
            } else {
            // 截取指定字符数显示
                echo YUtil::substr(CModifier::Html2Text($data->summary), 160,
                CHtml::link('　[ 查看详情 ... ]', array('videos/view', 'node' => $data->node_id, 'id' => $data->id)));
            }
            $this->endWidget();
            ?>
        </div>
    </div>
</div>